﻿#ifndef CAN_SYS_T_H
#define CAN_SYS_T_H
#include"can_init.h"
#include"ip_can_fifo.h"
#include"can_intr_t.h"
#include"can_sys_t.h"


//#define DRV_CAN_IP_MAX (6)

/*******************xtmrctr**********************/
#define TMRCTR_DEVICE_ID	XPAR_TMRCTR_0_DEVICE_ID
#define TIMER_CNTR_0	 0

/*******************axi can*********************/
#define CAN_DEVICE_ID		XPAR_CAN_0_DEVICE_ID

/*******************intc *********************/
#define TMRCTR_INTERRUPT_ID	XPAR_INTC_0_TMRCTR_0_VEC_ID
#define CAN_INTR_VEC_ID		XPAR_INTC_0_CAN_0_VEC_ID

#define MAX_CAN_DEVICES 1

typedef struct {
	drv_can_t drv_can[MAX_CAN_DEVICES];
} can_system_t;

can_system_t can_system;
int system_initialize(void);

#endif
